#1
# dict1={"name":"chen"}
# dict2={"age":14}
# dict1.update(dict2)
# print(dict1)

# # #2
# list1=[11,22]
# list2=[33,44]
# list1.extend(list2)
# print(list1)

# 3
# a=[2,3,4,5,7]
# b=int(input("请输入一个数字"))
# if b in a:
#     print(f"元素{b}在集合中")
# else:
#  print(f"元素{b}不在集合中")
# b = int(input("请输入一个数字"))
# if b in a:
#     print(f"{b}在元素集合中")
# else:
#  print(f"元素{b}不在集合中")

#4
# user = input("请输入您的账号").strip()
# pwd = input("请输入您的密码").strip()
#
# if user == 'admin' and pwd =='123456':
#     print("登录成功")
# else:
#     print("账号密码错误，登录失败！")

#5
# user=input("请输入账号")
# pwd=input("请输入密码")
# if user=="seven"or"alex" and pwd=="123":
#     print("登录成功")
# else:
#  print("登录失败")



# 6
# numbers=0
# for i in range(1,101):
#     if i % 3==0:
#         numbers +=1
# print(f"程序计算100以内有{numbers}个3的整数倍数字")

#7
# for i in range(3):
#     a=input("请输入内容")
#     if "c" in a:
#         print(f"baohanc")
#     else:
#         print(f"bubaohanc")
#8
# result = {}     # 收集全部的信息
# while True:
#     name = input("请输入用户姓名：")
#     if name == 'q':
#         print("停止收集")
#         break
#     phone = input("请输入电话：")
#     if phone == 'q':
#         print("停止收集")
#         break
#     address = input("请输入住址：")
#     if address == 'q':
#         print("停止收集")
#         break
#     age = input("请输入年龄：")
#     if age == 'q':
#         print("停止收集")
#         break
#     result[name] = {"电话":phone,"住址":address,"年龄":age}
#     # {"张三":{"电话":"1797767621","住址":"辽宁沈阳","年龄":19}}
# print("展示全部的个人信息：\n")
# print(result)
# name = input("请输入你要查询的姓名：")
# if name in result:
#     print(f"您当前查询的姓名为：{name}，电话是：{result[name]['电话']}，住址是：{result[name]['住址']}，年龄是：{result[name]['年龄']}")
#12
# s = input("请输入一个字符串: ")
# length = 0
# i = len(s) - 1
# while i >= 0 and s[i] == ' ':
#     i -= 1
#     while i >= 0 and s[i] != ' ':
#         length += 1
#         i -= 1
#         print(f"最后一个单词的长度是: {length}")

#13
# input_str = input("请输入一个字符串: ")
# reversed_str = ""
# for i in range(len(input_str)-1, -1, -1):
#     reversed_str += input_str[i]
#     print(f"反转后的字符串是: {reversed_str}")
#14
# a =int(input("请输入一个数字"))
# if a % 2==0:
#     print(f"是偶数")
# else:
#  print(f"是奇数")

#15
# numbers = 0
# for i in range(1,101):
#     if i % 7==0 and i % 5 !=0:
#         numbers +=i
# print(f"1 到 100 之间所有能被 7 整除但不能被 5 整除的数的和{numbers}")

#16
# num1 = float(input("请输入第一个数: "))
# num2 = float(input("请输入第二个数: "))
# num3 = float(input("请输入第三个数: "))
# min_num = num1
# if num2 < min_num:
#     min_num = num2
# if num3 < min_num:
#     min_num = num3
#     print(f"三个数中的最小值是: {min_num}")

#17
# if __name__ == "__main__":
#     nums = [2, 7, 11, 15]
#     target = 9
#     print(f"两数之和(nums, target)")

#18
# a={}
# listinfo = [133, 88, 24, 33, 232, 44, 11, 44]
# for a in listinfo:
#     if i <100 and i %2==0:
#         print(f"为偶数的是{listinfo}")
#19
# num = int(input("请输入一个整数: "))
# if num < 0:
#     num = -num
#     digits = 0
#     if num == 0:
#         digits = 1
#     else: temp = num
#     while temp > 0:
#         temp = temp // 10  # 整除10，去掉最后一位
#         digits += 1
#         print(f"这个整数是{digits}位数")

#20
# dict={"name":"韩梅梅","age":33}
# dict["name"]="韩涛"
# print(dict)
# dict["sex"]="男"
# print(dict)
# dict.pop("age")
# print(dict)

# 21、编写程序,定义一个列表,通过索引打印出列表中第2个值,删除列表中的第3值
# dict=[1,2,3,4]
# print(dict[1])
# dict.pop(2)
# print(dict)
#4、让用户输入账号密码, 去除账号密码前后无用的空格, 然后判断账号是不是admin, 密码是不是123456, 如果都相同显示登录成功, 否则显示登录失败
a=input("请输入账号").strip()
pwd=input("请输入密码").strip()
if a=="admin"and pwd=="123456":
    print("登录成功")
else:
 print("登录失败")